package com.jf.identity.dao.visexamid;

import com.jf.identity.entity.EmergencyFeedBackInfo;
import com.jf.identity.entity.ExamBaseParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 应急上报dao
 *
 * @author FCG
 */
@Repository
public interface EmergencyFeedBackDao {
    /**
     * 提交应急事件
     *
     * @param examBaseParam         考试信息
     *                              "orgCode": "机构代码",
     *                              "examId": "考试计划编号",
     *                              "examSessionNum": "考试场次编号",
     *                              "logicExamRoomNum": "逻辑考场号",
     * @param emergencyFeedBackInfo 应急上报信息
     *                              "emergencyReportId": "应急上报事件id,调用方生成UUID",
     *                              "emergencyNum": "应急预案编码",
     *                              "content": "应急预案内容",
     *                              "memo": "应急处理备注",
     *                              "examinerName": "上报人员姓名",
     *                              "examinerIdCardNo": "上报人员身份证号",
     *                              "dateTime": "上报时间 2018-04-10 14:00:00",
     *                              “imageUrls":"图片存储路径"
     * @return 成功条数
     */
    int insertEmergencyFeedBackInfo(@Param("examBaseParam") ExamBaseParam examBaseParam,
                                    @Param("emergencyFeedBackInfo") EmergencyFeedBackInfo emergencyFeedBackInfo);

    /**
     *  处置应急上报事件
     * @param emergencyReportId "emergencyReportId": "应急上报事件id"
     * @return 成功条数
     */
    int updateEmergencyReportStatus(String emergencyReportId);

    /**
     * 获取应急上报事件 图片存储路径
     * @param emergencyReportId "emergencyReportId": "应急上报事件id,调用方生成UUID",
     * @return 图片存储路径
     */
    String getImageUrlsByUid(String emergencyReportId);
}














